 
import { useI18n } from 'vue-i18n'
import type { IJsonItem } from '../types'

export function useChunjunDeployMode(span = 24): IJsonItem {
  const { t } = useI18n()

  return {
    type: 'radio',
    field: 'deployMode',
    name: t('project.node.deploy_mode'),
    options: DEPLOY_MODES,
    span
  }
}

export const DEPLOY_MODES = [
  {
    label: 'local',
    value: 'local'
  },
  {
    label: 'standlone',
    value: 'standlone'
  },
  {
    label: 'yarn-session',
    value: 'yarn-session'
  },
  {
    label: 'yarn-per-job',
    value: 'yarn-per-job'
  }
]
